package com.heima.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class HelloJob {


    @XxlJob("testJob")
    public void helloJob(){

        log.info("任务执行了");
    }
}